import java.util.Scanner;

public class Text6 {
    public static void main(String[] args) {
        //6.	接受用户输入的两个数，分别求这两个数的和，差，积，商，模
        Scanner sc = new Scanner(System.in);
        double b = sc.nextDouble();
        double c = sc.nextDouble();
        System.out.println(b + c);
        System.out.println(b - c);
        System.out.println(b * c);
        System.out.println(b / c);
        System.out.println(b % c);
    }
}
